package com.zmn.mcc.common.enums;

/**
 * 直辖市枚举
 * @author liubodong
 * @since 2021/03/09 11:28
 */
public enum MunicipalityEnum {

    BEIJING("北京市", "北京", 110000, 110100),
    SHANGHAI("上海市", "上海", 310000, 310100),
    TIANJIN("天津市", "天津", 120000, 120100),
    CHONGQING("重庆市", "重庆", 500000, 500100),


    ;
    private String name;

    private String abbreviation; //简称

    private Integer provinceCode; //数据库省级id

    private Integer cityCode; //数据库市级id

    private MunicipalityEnum(String name, String abbreviation, Integer provinceCode, Integer cityCode) {
        this.name = name;
        this.abbreviation = abbreviation;
        this.provinceCode = provinceCode;
        this.cityCode = cityCode;
    }

    public String getName() {
        return this.name;
    }

    public String getAbbreviation() {
        return  this.abbreviation;
    }

    public Integer getProvinceCode() {
        return this.provinceCode;
    }

    public Integer getCityCode() {
        return this.cityCode;
    }
}
